//package com.hzeport.bgs22emduty.inbound.api;
//
//import com.hzeport.bgs22emduty.dto.MessageSendDTO;
//import com.hzeport.bgs22emduty.xxljob.MessageSendUtil;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping("messageSend")
//public class MessageSendController {
//
//    @Resource
//    private MessageSendUtil messageSendUtil;
//
//    @RequestMapping("smsMessage")
//    public void messageSend(@RequestBody MessageSendDTO dto){
//        dto.getPhones().forEach(phone-> messageSendUtil.sendMessage(phone,dto.getMessage()));
//    }
//}
